﻿param($installPath, $toolsPath, $package, $project)

$path = [System.IO.Path]
$projectDir = $path::GetDirectoryName($project.FullName)
$wmappmanifest = Join-Path $projectDir "Properties\WMAppManifest.xml"


(Get-Content $wmappmanifest) | 
Foreach-Object { $_ -replace "NavigationPage=`".*?.xaml`"", 'NavigationPage="Shell.xaml"' } | 
Set-Content $wmappmanifest

$readmefile = $path::Combine($path::GetDirectoryName($project.FileName), "App_Readme\Getting Started with Phoenix.txt")
$readmefile
$dte.ItemOperations.OpenFile($readmefile)